﻿#region Imports
using System.ComponentModel.Composition;
using System.Threading;
using System.Windows.Controls;
using System.Windows.Markup;
using Jounce.Core.View;
using Jounce.Core.ViewModel;
using Jounce.Regions.Core;
#endregion

namespace JounceSilverlightDemo.Views
{
    [ExportAsView("LoginPage")]
    [ExportViewToRegion("LoginPage", "MainContentRegion")]
    public partial class Login : UserControl
    {
        #region Properties
        [Export]
        public ViewModelRoute Binding
        {
            get { return ViewModelRoute.Create("LoginVM", "LoginPage"); }
        }
        #endregion

        #region Constructors
        public Login()
        {
            InitializeComponent();
            this.Language = XmlLanguage.GetLanguage(Thread.CurrentThread.CurrentCulture.Name);
        }
        #endregion

        #region Methods
        //// Executes when the user navigates to this page.
        //protected override void OnNavigatedTo(NavigationEventArgs e)
        //{
        //}
        #endregion
    }
}
